package com.example.hospitalsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.hospitalsystem.pojo.dto.auth.*;
import com.example.hospitalsystem.pojo.entity.User;
import com.example.hospitalsystem.pojo.vo.LoginVo;
import com.example.hospitalsystem.result.Result;



public interface AuthService extends IService<User> {

    Result<Object>  userRegiister(RegisterDto registerDto);

    Result<LoginVo> userLogin(LoginDto loginDto);

    Result<Object>  loginByEmail(EmailCaptchaDto emailCaptchaDto);

    Result<Object>  changePwdByPast(ChangePwd changePwd);

    Result<Object>  bindEmail(EmailCaptchaDto emailCaptchaDto);

    Result<Object> changePwdByEmail(ChangePwdByEmailDto changePwdByEmailDto);

    Result<Object> verifyOldEmail(EmailCaptchaDto emailCaptchaDto);

    Result<Object> changeEmail(ChangeEmailDto changeEmailDto);

    Result<Object> cancelEmailBind(CancelEmailDto cancelEmailDto);
 }
